package com.itrip.itripauth.service.impl;

import com.itrip.itripauth.entity.AreaDic;
import com.itrip.itripauth.mapper.AreaDicMapper;
import com.itrip.itripauth.service.AreaDicService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 区域字典表 服务实现类
 * </p>
 *
 * @author 四阶段项目二组
 * @since 2020-02-25
 */
@Service
public class AreaDicServiceImpl extends ServiceImpl<AreaDicMapper, AreaDic> implements AreaDicService {
    @Autowired
    private AreaDicMapper areaDicMapper;
    /**
     * 根据isChina查询国内热门酒店城市或者国外热门酒店城市
     * @param isChina
     * @param isHot
     * @return
     *
     * */
    @Override
    public List<AreaDic> selectByisChina(Integer isChina, Integer isHot) {
        return areaDicMapper.selectByisChina(isChina,isHot);
    }

    @Override
    public List<AreaDic> selectAreaDicBycityIdValue(Integer isTradingArea, Integer parent) {
        return areaDicMapper.selectAreaDicBycityIdValue(isTradingArea,parent);
    }
}
